<template>
	<view class="container">
		<!-- <image @tap="govip" src="../../static/big-bg.png" mode="widthFix" width="100%" heigt="100%" >
		</image> -->
		<view class="text-bold text-center text-white letter-space wd-100 w-fixed" style="font-size: 30px; top:180upx;">
			3D世界景点
		</view>

		<view class="u-flex text-white wd-100 justify-around w-fixed" style="top: 270upx;">
			<view class="text-bold u-font-lg" style="margin-left: 150upx;">
				看家乡
			</view>
			<view class="text-bold u-font-lg " style="margin-right: 150upx;">
				看世界
			</view>
		</view>

		<view class="text-center w-fixed wd-100" style="bottom: 240upx;">
			<button class="cu-btn bg-gradual-blue lg  text-bold" style="width: 60%;"> 微信一键登录 </button>
		</view>
		<view class="text-center w-fixed wd-100" style="bottom: 180upx;">
			<text @click="see" class="text-orange" style="text-decoration: underline;">随便看看</text>
		</view>
		<view class="text-center w-fixed wd-100" style="bottom: 100upx;">
			<u-checkbox-group>
				<u-checkbox v-model="agree" shape="circle">我已阅读并同意
				</u-checkbox>
			</u-checkbox-group>
			<text class="xie_yi" @tap="open_doc(1)">《用户协议》</text>及<text class="xie_yi" @tap="open_doc(2)">《隐私政策》</text>
		</view>

	</view>

</template>

<script>
	// const sharetrace = uni.requireNativePlugin('shoot-sharetrace')
	import userXieYi from '@/data/userXieYi.js'
	import privacy_policy from '@/data/privacy_policy.js'
	export default {
		data() {
			return {
				agree: true,
			}
		},
		onLoad() {
			//plus.navigator.closeSplashscreen()
		},
		onShow() {

		},
		onReady() {
			// sharetrace.getInstallTrace(data => {
			// 	console.log(data)
			// 	//this.showResult(JSON.stringify(data));
			// });
		},
		methods: {
			showResult(data) {
				uni.showModal({
					title: 'ShareTrace',
					content: data,
					showCancel: false,
					success: function(res) {

					}
				})
			},
			see() {
				this.$goNavWindow('/pages/center/center')
			},
			// 打开用户协议
			open_doc(state) {
				if (state === 1) {
					uni.showModal({
						title: '用户协议',
						content: userXieYi,
						showCancel: false
					})
				} else if (state === 2) {
					uni.showModal({
						title: '隐私政策',
						content: privacy_policy,
						showCancel: false
					})
				}
			},
			gologin() {
				this.$goWindow('../login/login')
			}

		}
	}
</script>

<style>
	.container {
		background-image: url(../../static/big-bg.png);
		background-size: 100% 100%;
		width: 100vw;
		height: 100vh;

	}

	.xie_yi {
		color: #108EE9;
	}
</style>
